package com.sky.service;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    //新增员工
    public Result addEmp(EmployeeDTO dto);
    //分页查询员工
    Result page(EmployeePageQueryDTO dto);
    //修改员工状态
    Result updateEmpStatus(Integer status, Long id);
    //单一查询员工（回显）
    Result<Employee> getEmpById(Long id);
    //修改员工信息
    Result updateEmp(EmployeeDTO dto);
}
